package com.jasonzhou.onetomanycontrol.bean;

import java.io.Serializable;

public class MP3Info implements Serializable {
    private String uri;
    private long id;
    private int playlistID;//列表ID
    private String albumName;//专辑名字
    private String singerName;//歌手名字
    private String url;//SD卡路径
    private String name;//歌曲名字
    private long pictureID;//专辑ID
    private int Duration;
    private long allSongIndex;
    private String picUrl;//图片路径
    private String sortLetters;  //显示数据拼音的首字母
    //匹配搜索拼音字母
    private String searchStr;

    public String getSortLetters() {
        return sortLetters;
    }

    public void setSortLetters(String sortLetters) {
        this.sortLetters = sortLetters;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public int getPlaylistID() {
        return playlistID;
    }

    public void setPlaylistID(int playlistID) {
        this.playlistID = playlistID;
    }

    public String getAlbumName() {
        return albumName;
    }

    public void setAlbumName(String albumName) {
        this.albumName = albumName;
    }

    public String getSingerName() {
        return singerName;
    }

    public void setSingerName(String singerName) {
        this.singerName = singerName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getPictureID() {
        return pictureID;
    }

    public void setPictureID(long pictureID) {
        this.pictureID = pictureID;
    }

    public int getDuration() {
        return Duration;
    }

    public void setDuration(int duration) {
        Duration = duration;
    }

    public long getAllSongIndex() {
        return allSongIndex;
    }

    public void setAllSongIndex(long allSongIndex) {
        this.allSongIndex = allSongIndex;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public String getSearchStr() {
        return searchStr;
    }

    public MP3Info setSearchStr(String searchStr) {
        this.searchStr = searchStr;
        return this;
    }

    @Override
    public String toString() {
        return "MP3Info [id=" + id + ", playlistID=" + playlistID
                + ", albumName=" + albumName + ", singerName=" + singerName
                + ", url=" + url + ", name=" + name + ", pictureID="
                + pictureID + ", Duration=" + Duration + ", allSongIndex="
                + allSongIndex + ", picUrl=" + picUrl + "]";
    }

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof MP3Info) {
            if (((MP3Info) obj).id == getId()) {
                return true;
            } else {
                return false;
            }
        }
        return super.equals(obj);
    }
}
